<?php
/**
 * Created by novebeta.
 * Date: 12/11/12
 * Time: 5:08 PM
 */
class LevelUser
{
    //const MEMBER = 0;
    const ASWIL = 50;
    const KABUPATEN = 10;
    const SUPERADMIN = 1000;

    // For CGridView, CListView Purposes
    public static function getLabel($level)
    {
        //if ($level == self::MEMBER) return 'Guest';
        if ($level == self::ASWIL) return 'Asisten Wilayah';
        if ($level == self::KABUPATEN) return 'Koordinator Kabupaten';
        if ($level == self::SUPERADMIN) return 'Super Administrator';
        return false;
    }

    // for dropdown lists purposes
    public static function getLevelList()
    {
        return array(
          //  self::MEMBER => 'Member',
            self::ASWIL => 'Asisten Wilayah',
            self::KABUPATEN => 'Koordinator Kabupaten',
            self::SUPERADMIN => 'Super Administrator'
        );
    }
}
